package com.zzyang.cloud.service.impl;

import com.zzyang.cloud.mapper.PaymentMapper;
import com.zzyang.cloud.pojo.entity.PaymentDO;
import com.zzyang.cloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2020/10/22 21:17
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    public PaymentDO getById(Long id) {
        return paymentMapper.getById(id);
    }

    public Integer insert(PaymentDO payment) {
        return paymentMapper.insert(payment);
    }
}
